const { watchEffect } = window.Vue

const useTitle = (value) => {
    console.log(1)
    watchEffect(() => {
        console.log(2)
        document.title = value.value
    })
}
export default useTitle